﻿<?php
session_start( );
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--DVID=00001DE9-->
<HTML>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<LINK href="frmm.css" rel="stylesheet" type="text/css">
<title>慕主先鋒教會</title>
</head>
<?php
$regid=  $_SESSION['regid'];
$myemail =  $_SESSION['email'];
$pastor=   $_SESSION['pastor'];
$fullname= $_SESSION['fullname']; 
?>
<body link=#3060c0 vlink=#3060c0>

<?php include ("con_getreg.php"); ?>

<div id="container"> 
  <h1><img src="frmmtitlePic.jpg" width="785" height="75"></h1>


  <div id="thin-col">
登入名(Login as)<br><li><a href="con_registrant.php"><?php echo $_SESSION['fullname']; ?></a>
<p>

<a href=logout.php>登出(Logout)</a>
<hr color=#c0c0c0 size = 1>

訓練課程<br>(Registration for)</b><li><?php echo $_SESSION['conferenceID']; ?>
<p>

</div>

<div id="thick-col">
現有報名資料
<?php 
  require_once('connections/mysqlDB.php');
  $dbConn = new mysqli(HOST,USER,PWD,DB);
  if ($stmt = $dbConn->prepare("SELECT rid FROM registration WHERE regid = ?")) {
    $stmt->bind_param('s', $regid);
    $stmt->execute(); 
    $stmt->bind_result($col1);

    // for each registration, print confirmation (rid)
    while ($stmt->fetch()) {
        $rid = $col1;
	$_SESSION['rid'] = $rid;
        include ("ws_reginfo.php");
    }
  }
?>
</div> <!-- end of green box ->

</div> <!-- end of container ->

</body>
</html>
